const doc: ClassDecorator = (target: any) => {
    // console.log(target);
    target.prototype.name = '小满';
};

@doc
class XiaoMan {
    constructor() {}
}

const xiao: any = new XiaoMan();
for (const key in xiao) {
    console.log(key, xiao[key]);
    /* if (Object.prototype.hasOwnProperty.call(xiao, key)) {
        const element = xiao[key];
        console.log(key, element);
    } */
}
console.log(xiao.name);

// console.log(xiao);
